use actix_identity::{CookieIdentityPolicy, IdentityService};

pub struct Identity;

impl Identity {
    pub fn identity() -> IdentityService<CookieIdentityPolicy> {
        IdentityService::new(CookieIdentityPolicy::new(&[0; 32])
            .name("authorization")
            .secure(false))
    }
}